home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / button.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-10  |  585 b   |  24 lines

  1. /* BUTTON.H   Button is text in Frame. It can be used as "pressable" object.
  2.           There can be more then one strings in the text, '\n' is
  3.           the return delimiter. Rectangle is in TEXT coordinates
  4. */
  5.  
  6. #ifndef __BUTTON_H_
  7. #define __BUTTON_H_
  8.  
  9. #include "press.h"
  10. #include <string.h>
  11.  
  12. class Button : public Press
  13.     {
  14.     protected:
  15.     char* text;    // button text
  16.         int pattern;
  17.     public:
  18.     Button(rect r, char* txt, BORDERS b_type = BUTTON_BORDER,
  19.            int pat = 0);
  20.     virtual ~Button() { delete text; }
  21.     virtual void show();
  22.     };
  23.  
  24. #endif __BUTTON_H_